Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 15 - Pick Objects / Pick Objects Reference
Data Structures


Hit Path Structure

You use a hit path structure to get group information about the path through a model hierarchy to a specific picked object. A hit path structure is defined by the TQ3HitPath data type.

typedef struct TQ3HitPath {
   TQ3GroupObject             rootGroup;
   unsigned long              depth;
   TQ3GroupPosition           *positions;
} TQ3HitPath;
Field Description
rootGroup
The root group that was picked.
depth
The number of positions in the path. If the picked object is not in the model hierarchy, this field contains the value 0.
positions
A pointer to an array of group positions. This array is allocated by QuickDraw 3D.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996